﻿ 
//
// *************************************************************************************
// WP-Framework
// 
// Developed by
// Lukas Kretschmar (lkretschmar.dev@bluewin.ch)
//
// Switzerland, Copyright (c) 2013 lkretschmar
// This content is released under the MIT License (http://opensource.org/licenses/MIT).
//     
// *************************************************************************************
//
//
// ***********************************************************************************************************************************
// NOTICE!!
// This content is auto-generated. Any changes will be overriden the next time the template is changed or the custom-tool is executed.
// Generated at: 01.05.2013 10:17
//
// ***********************************************************************************************************************************

using System;
using System.Reflection;
using KretschIT.WP_Fx.EasyMoq;
using KretschIT.WP_Fx.EasyMoq.Generator;

namespace EasyMoq.Extensions
{
	#region TestObjectMockable

	static class TestObjectMockableExtensions
	{
		#region EventExtensions

		#endregion

		#region PropertyExtensions

		public static PropertyInfo Property(this KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ITestObject mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ITestObject).GetProperty("Property");
		}

		public static PropertyInfo OtherProperty(this KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ITestObject mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ITestObject).GetProperty("OtherProperty");
		}

		
		#endregion
	}
	
	#endregion

	#region TestGenericMethodMockable

	static class TestGenericMethodMockableExtensions
	{
		#region EventExtensions

		#endregion

		#region PropertyExtensions

		
		#endregion
	}
	
	#endregion

	#region SetterMockable

	static class SetterMockableExtensions
	{
		#region EventExtensions

		#endregion

		#region PropertyExtensions

		public static PropertyInfo Value(this KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ISetter mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ISetter).GetProperty("Value");
		}

		
		#endregion
	}
	
	#endregion

	#region TestEventsMockable

	static class TestEventsMockableExtensions
	{
		#region EventExtensions

		public static void SimpleDoneEvent(this IEventsOf<KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ITestEvents> mock, System.Object sender, System.EventArgs e)
		{
			var eventCall = mock.GetType().GetMethod("RaiseSimpleDoneEvent");
			eventCall.Invoke(mock, new object[] { sender, e });
		}

		public static void CustomDoneEvent(this IEventsOf<KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ITestEvents> mock, System.Object sender, KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.CustomEventArgs e)
		{
			var eventCall = mock.GetType().GetMethod("RaiseCustomDoneEvent");
			eventCall.Invoke(mock, new object[] { sender, e });
		}

		#endregion

		#region PropertyExtensions

		public static PropertyInfo Property(this KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ITestEvents mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects.ITestEvents).GetProperty("Property");
		}

		
		#endregion
	}
	
	#endregion

	#region TestPropertiesMockable

	static class TestPropertiesMockableExtensions
	{
		#region EventExtensions

		#endregion

		#region PropertyExtensions

		public static PropertyInfo Int(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties).GetProperty("Int");
		}

		public static PropertyInfo IntSet(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return mock.GetType().GetProperty("IntSet");
		}

		public static PropertyInfo Long(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties).GetProperty("Long");
		}

		public static PropertyInfo LongSet(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return mock.GetType().GetProperty("LongSet");
		}

		public static PropertyInfo Short(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties).GetProperty("Short");
		}

		public static PropertyInfo ShortSet(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return mock.GetType().GetProperty("ShortSet");
		}

		public static PropertyInfo Object(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties).GetProperty("Object");
		}

		public static PropertyInfo ObjectSet(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return mock.GetType().GetProperty("ObjectSet");
		}

		public static PropertyInfo String(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties).GetProperty("String");
		}

		public static PropertyInfo StringSet(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestProperties mock)
		{
			return mock.GetType().GetProperty("StringSet");
		}

		
		#endregion
	}
	
	#endregion

	#region TestGenericProperties1Mockable

	static class TestGenericProperties1MockableExtensions
	{
		#region EventExtensions

		#endregion

		#region PropertyExtensions

		public static PropertyInfo Property<T>(this KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestGenericProperties<T> mock)
		{
			return typeof(KretschIT.WP_Fx.EasyMoq.Test.IntegrationTest.Helpers.ITestGenericProperties<T>).GetProperty("Property");
		}

		
		#endregion
	}
	
	#endregion

	
}


 
